﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeBehind="sensor88_list.aspx.cs" Inherits="HYSoft.Web.sensor88_list" %>
<%@ Register Src="~/Controls/menu.ascx" TagName="Menus" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script src="bootstrap/My97DatePicker/WdatePicker.js" type="text/javascript"></script>
  <style type="text/css">
        .main
        {
            margin-left: auto;
            margin-right: auto;
            width: 1140px;
            height: auto;
            background-color: White;
        }
        .part_wss
        {
            width: 789px;
            height: auto;
            margin-left: 180px;
            text-align: left;
        }
        .part_ws_bt
        {
            height: 34px;
            line-height: 34px;
            background: url(../images/biaotilan.png) no-repeat;
            font-family: "微软雅黑";
            font-size: 14px;
            padding-left: 22px;
            color: #fff;
            letter-spacing: 1px;
            border-top: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            border-left: 1px solid #d1d1d1;
        }
        .part_7
        {
            width: 787px;
            float: left;
            margin: auto;
            height: auto;
            margin-top: 15px;
            border-bottom: 1px solid #d1d1d1;
        }
        .part_7_left
        {
            width: 400px;
            height: auto;
            float: left;
        }
        .part_7_left td
        {
            height: 25px;
        }
        .part2_1
        {
            width: 95px;
            height: 22px;
            background: url(../images/2.jpg) no-repeat;
            font-weight: bold;
            text-align: center;
            line-height: 22px;
            color: #ffff00;
            margin: auto;
            margin-top: 25px;
        }
        .part_7_right
        {
            margin-left: 50%;
            height: 280px;
            background: url(../images/1.jpg) no-repeat;
            padding-left: 10px;
            padding-top: 20px;
            margin-top: 30px;
        }
        .part_7_right3
        {
            width: 340px;
            height: 280px;
            background: url(../images/1.jpg) no-repeat;
            padding-left: 10px;
            padding-top: 8px;
            float: left;
            margin-top: 10px;
        }
        .part_7_right2
        {
            width: 230px;
            height: 195px;
            background: url(../images/1_2.jpg) no-repeat;
            padding-left: 5px;
            padding-top: 5px;
            float: left;
        }
        .p7_1
        {
            width: 230px;
            height: 190px;
            background: url(../images/1_2.jpg) no-repeat;
            padding-left: 5px;
            padding-top: 5px;
        }
        .part_7_ws
        {
            width: 760px;
            height: 305px;
            margin: auto;
            margin-top: 20px;
        }
        .part_7_3
        {
            width: 789px;
            margin: auto;
            margin-bottom: 20px;
        }
        .part_7_w1
        {
            width: 92%;
            height: 20px;
            background: url(../images/p_3.jpg) left no-repeat;
            padding-left: 20px;
            line-height: 20px;
            margin: auto;
            float: left;
            margin-left: 25px;
        }
        .part_7_w2
        {
            width: 92%;
            margin: auto;
            margin-top: 70px;
        }
        .part_7_w2 li
        {
            width: 228px;
            margin-right: 13px;
            float: left;
        }
        .part_a1
        {
            width: 787px;
            border-left: 1px solid #d1d1d1;
            border-right: 1px solid #d1d1d1;
            background: url(../images/w_p5.jpg) bottom repeat-x;
            margin-top: -71px;
            height: auto;
        }
       
        .part_bottom table
        {
            border:1px solid #b1b1b1;
        }
        .part_bottom table tr td
        {
            border-bottom:1px solid #b1b1b1;
            border-left:1px solid #b1b1b1;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentPlaceHolderMenu" runat="server">
<uc3:Menus  ID="menus" runat="server"/>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPlaceHolderMain" runat="server">
 <div class="main">
  <div>
            <img src="Images/top.PNG" /></div>
                <div class="part_wss">
                    <div class="part_ws_bt">
                       
                        传感器节点基本状态</div>
                    <div class="part_a1">
                        <div class="part_7">
                            <div class="part_7_left">
                                <asp:ListView ID="ListView1" runat="server">
                                   <ItemTemplate>
                                      <table width="95%" border="0" align="right" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
                                      <tr>
                                        <td style="text-align: left;"><table width="95%" border="0" align="left" cellpadding="0" cellspacing="0" style="margin-top: 10px;">
                                          <tr>
                                            <td width="19"><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 传感器名：<%#data_typename(Eval("adminno").ToString())%>传感器</td>
                                            
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> Mac地址：
                                              &nbsp;<%#Eval("mac").ToString()%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 手机卡号：
                                              &nbsp;<%#Eval("simno").ToString()%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 安装位置：
                                              &nbsp;<%#Eval("addr")%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 所属监测点：
                                              &nbsp;<%#data_addrname(Eval("areano").ToString())%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 所属监测员：
                                              &nbsp;<%#Eval("name")%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 监测员手机：
                                              &nbsp;<%#Eval("Mobile")%></td>
                                          </tr>
                                          <%if (Request.QueryString["type"].ToString() == "88") %>
                                          <%{ %>
                                          <tr id="laxian1" runat="server">
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 拉线预警距离(mm)：
                                              &nbsp;<%#Eval("intvalue1")%></td>
                                          </tr>
                                          <tr id="laxian2" runat="server">
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 拉线报警距离(mm)：
                                              &nbsp;<%#Eval("intvalue2")%></td>
                                          </tr>
                                          <%} %>
                                          <%if (Request.QueryString["type"].ToString() == "66") %>
                                          <%{ %>
                                          <tr id="weiyi1" runat="server">
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计报警长度：
                                              &nbsp;<%#data_count(Eval("intvalue1"))%>(mm)</td>
                                          </tr>
                                          <tr id="weiyi2" runat="server">
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移增幅：
                                              &nbsp;<%#data_count(Eval("intvalue2"))%>(mm)</td>
                                          </tr>
                                          <%} %>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 传感器状态：
                                              &nbsp;<%#data_zhuangt(Eval("chuanganqi").ToString())%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 报警级别：
                                              &nbsp;<%#data_jibie(Eval("jingbao").ToString())%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 最新状态时间： <%#Eval("charvalue2").ToString()%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 温度状态：
                                              &nbsp;<%#data_zhuangt(Eval("wendu").ToString())%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 供电模式：
                                              &nbsp;<%#Eval("gongdian").ToString()%></td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 电量状态：
                                              &nbsp;<%#data_zhuangt(Eval("dianliang").ToString())%></td>
                                          </tr>
                                          <%if (Request.QueryString["type"].ToString() == "88") %>
                                          <%{ %>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 拉线采集频率：
                                              &nbsp;<%#Eval("rate0").ToString()%>(小时)</td>
                                          </tr>
                                          <%} %>
                                          <%if (Request.QueryString["type"].ToString() == "99") %>
                                          <%{ %>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 摄像头采集频率：
                                              &nbsp;<%#Eval("rate0").ToString()%>(小时)</td>
                                          </tr>
                                          <%} %>
                                          <%if (Request.QueryString["type"].ToString() == "66") %>
                                          <%{ %>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移初值：
                                              &nbsp;<%#data_count(Eval("value0"))%>(mm)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计阀值1：
                                              &nbsp;<%#data_count(Eval("value1"))%>(mm)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计频率1：
                                              &nbsp;<%#Eval("rate1").ToString()%>(小时)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计阀值2：
                                              &nbsp;<%#data_count(Eval("value2"))%>(mm)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计频率2：
                                              &nbsp;<%#Eval("rate2").ToString()%>(小时)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计阀值3：
                                              &nbsp;<%#data_count(Eval("value3"))%>(mm)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计频率3：
                                              &nbsp;<%#Eval("rate3").ToString()%>(小时)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计阀值4：
                                              &nbsp;<%#data_count(Eval("value4"))%>(mm)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计频率4：
                                              &nbsp;<%#Eval("rate4").ToString()%>(小时)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计阀值5：
                                              &nbsp;<%#data_count(Eval("value5"))%>(mm)</td>
                                          </tr>
                                          <tr>
                                            <td><img src="images/p_3.jpg" width="12" height="12" /></td>
                                            <td style="text-align: left;"> 位移计频率5：
                                              &nbsp;<%#Eval("rate5").ToString()%>(小时)</td>
                                          </tr>
                                          <%} %>

                                           <%if (Session["uwrite"].ToString() == "1") %>
                                              <%{ %>
                                          <tr >
                                            <td colspan="6" ><div class="part2_1" style=" margin-left:300px;"> <a href="edit88.aspx?mac=<%#Eval("mac")%>" style="color: #ffff00;">编辑传感器</a>
                                            
                                             
                                           
                                              
                                            </div></td>
                                          </tr>
                                            <%}%>
                                        </table></td>
                                      </tr>
                                      </table>
                                    </ItemTemplate>
                                </asp:ListView>
          
                            </div>
                            <div class="part_7_right">
                                <img src="<%=tux %>" width="320" height="240" /></div>
                            <div class="clear">
                            </div>
                        </div>
                        <div class="part_7_w1">
                            数据记录：<a style="color:red;">(初始显示为最近10条记录)</a></div>
                        <div class="part_7_w2">
                        <div style=" width:100%; text-align:center;">
                        <input id="txtstartingtime" class="Wdate" type="text" runat="server" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1997-01-01 00:00:00',maxDate:'2108-01-10 23:59:59'})" value="2013-10-12 11:00:00"/> 
                   -
          <input id="txtendingtime" class="Wdate" type="text" runat="server" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:'1997-01-01 00:00:00',maxDate:'2108-01-10 23:59:59'})" value="2013-10-12 11:00:00"/>
                                <asp:Button ID="Button1" runat="server" Text="刷 新" OnClick="Button1_Click" />
                           </div>
                            <br />
                            <br />
                            <div class="part_bottom">
                         
                    <table class="tables" width="100%" cellspacing="0" cellpadding="0">
                        <tr style="background: url(images/ws3.jpg) repeat-x; font-weight: bold;">
                            <td >
                                Mac地址</td>
                            
                            <td>
                                温度</td>
                            
                            <td>
                                供电</td>
                            <td>
                                电量状态</td>
                            <td>
                                传感器状态</td>
                            <td>
                                日志时间</td>
                            <td>
                                报警级别</td>
                        </tr>
                        <asp:ListView ID="ListView2" runat="server">
                         <ItemTemplate>
                                <tr onmouseover="this.style.backgroundColor='#66CCFF';" onmouseout="this.style.backgroundColor='#FFFFFF';">
                                    <td>
                                        &nbsp;<a><%#Eval("mac")%></a>
                                    </td>
                                    
                                    <td>
                                        &nbsp;<a><%#data_wendu(Eval("wendu").ToString())%></a>
                                    </td>
                                   
                                    <td>
                                        &nbsp;<a><%#Eval("gongdian").ToString()%></a>
                                    </td>
                                    <td>
                                        &nbsp;<a><%#data_dianliang(Eval("dianliang").ToString())%></a>
                                    </td>
                                    <td>
                                        &nbsp;<%#data_Status(Eval("chuanganqi").ToString())%>
                                    </td>
                                    <td>
                                        &nbsp;<%#Eval("chartime")%>
                                    </td>
                                    <td>
                                        &nbsp;<%#data_jingbao(Eval("jingbao").ToString())%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:ListView>
                    </table>
                </div>
                       <div style="width:100%; height:200px;"></div>     
                        </div>
                        <br />
                        <hr />
                       
                    </div>
                </div>
            </div>
</asp:Content>
